package org.dxy.domain.event.productionLine;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Value;
import org.dxy.domain.event.AggregateTypeEnum;
import org.dxy.domain.event.DomainEvent;

/**
 * @description: 产线启动事件，可用于触发调度器、预热设备等操作层响应逻辑。属于状态转移事件之一。
 */
@Value
@Builder
@AllArgsConstructor
public class ProductionLineStartedEvent implements DomainEvent {
    Long lineId;
    
    @Override
    public Long aggregateId() {
        return lineId;
    }
    
    @Override
    public String aggregateType() {
        return AggregateTypeEnum.PRODUCTION_LINE.getKey();
    }
    
    @Override
    public String eventType() {
        return ProductionLineEventTypeEnum.STARTED.getKey();
    }
} 